amends "../snippetTest.pkl"

local str1 = "😈👿👾"
local str2 = "🤑🤓😎"
local str3 = "🙈🙉🙊🐒"

facts {
  ["equality"] {
    "😀😬😁" == "😀😬😁"
    !("😀😬😁" == "😀😬🐭")
  }

  ["inequality"] {
    "😀😬😁" != "😀😬🐭"
    !("😀😬😁" != "😀😬😁")
  }
}

examples {
  ["interpolation"] {
    "\(str1) are \(str2) today? Are \(str2) hungry?"
    "Can \(str2 + " nest \(str3)") for me?"
    "Is \(str1 + str2) a word?"
    "Is \("soma") a word?"
    "Can \(str2 + " nest (((") for me?"
    "Can \(str2 + " nest )))") for me?"
    "Can you \( new Dynamic { x = "nest \( new Dynamic { y = str3 }.y )" }.x ) for me?"
  }

  ["multiline interpolation"] {
    """
    How are you today?
    Are \(str2) hungry?\n
    Can you \( new Dynamic { x = "nest \( new Dynamic { y = str3 }.y )" }.x ) for me?
    """
  }

  ["subscript"] {
    str3[2]
    module.catch(() -> str3[-1])
    module.catch(() -> str3[4])
  }
}

